 |
API Documentation
|
|
|
11 class Vector :
public ByteAlignedClass<16>
55 Vector (
float x,
float y,
float z,
float w) ;
static float distanceVec3(const Vector &a, const Vector &b)
float getLengthVec4() const
float getDistanceSquaredVec2(const Vector &other) const
Vector(float x, float y, float z, float w)
static float distanceSquaredVec2(const Vector &a, const Vector &b)
A 4-component vector class, with integers.
Definition: IntVector.h:12
static float distanceVec2(const Vector &a, const Vector &b)
bool operator>(const Vector &other) const
void setAsCrossVec3(const Vector &other)
Vector getCrossVec3(const Vector &other) const
Encompasses all API of component NilkinsMaths.
Definition: IntVector.h:7
bool operator==(const Vector &other) const
bool operator<(const Vector &other) const
void operator+=(const Vector &other)
A quaternion, symbolizing rotations as a 4D vector.
Definition: Quaternion.h:14
Vector operator+(const Vector &other) const
float getLengthVec3() const
static float distanceSquaredVec4(const Vector &a, const Vector &b)
float getDistanceVec4(const Vector &other) const
static float dotVec3(const Vector &a, const Vector &b)
float getLengthSquaredVec2() const
static float dotVec4(const Vector &a, const Vector &b)
float _x
X component of the vector.
Definition: Vector.h:16
Represents a 4x4 float matrix.
Definition: Matrix.h:14
float getDistanceVec2(const Vector &other) const
float getDistanceSquaredVec4(const Vector &other) const
Vector operator*(const Vector &other) const
static float distanceSquaredVec3(const Vector &a, const Vector &b)
void operator-=(const Vector &other)
bool operator<=(const Vector &other) const
Vector(const Vector &other)
void operator/=(const Vector &other)
Class holding information about a string, with ownership over the data.
Definition: String.h:22
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
Vector(const IntVector &other)
static Vector crossVec3(const Vector &a, const Vector &b)
void fromString(const nkMemory::StringView &str)
nkMemory::String toString() const
float dotProductVec3(const Vector &other) const
bool operator>=(const Vector &other) const
float _z
Z component of the vector.
Definition: Vector.h:18
float _w
W component of the vector.
Definition: Vector.h:19
float getLengthSquaredVec3() const
float dotProductVec4(const Vector &other) const
float getDistanceVec3(const Vector &other) const
Vector getNormalizedVec2() const
Vector getNormalizedVec3() const
float _y
Y component of the vector.
Definition: Vector.h:17
Vector getNormalizedVec4() const
float getLengthVec2() const
float dotProductVec2(const Vector &other) const
Vector operator-(const Vector &other) const
float getLengthSquaredVec4() const
bool operator!=(const Vector &other) const
void operator*=(const Vector &other)
Vector operator/(const Vector &other) const
float getDistanceSquaredVec3(const Vector &other) const
Vector & operator=(const Vector &other)
Vector(float x, float y, float z)
A 4-component vector class, with floats.
Definition: Vector.h:12
static float distanceVec4(const Vector &a, const Vector &b)
static float dotVec2(const Vector &a, const Vector &b)